<?php echo form_open('user/newuser'); ?>

<div class="well" style="width: 400px;">
<table width="100%" style="background-color:  transparent" >
    <thead>
      <tr>
        <th colspan="2" style="text-align:center;">
          <div class="page-header">
            <h1>Registrarme</h1>
          </div> 
        </th>
      </tr>
    </thead>
    <tbody>
        <tr>
            <td>Nombre: </td>
            <td>
                <?php echo form_input('username',set_value('username'), 'placeholder="Usuario"'); ?>
                <div style="color: red">
                    <?php echo form_error('username'); ?>
                </div>
            </td>
        </tr>
        <tr>
            <td>Contrase&ntilde;a: </td>
            <td>
                <?php echo form_password('pass', set_value('pass'), 'placeholder="Contrase&ntilde;a"'); ?>
                <div style="color: red">
                    <?php echo form_error('pass'); ?>
                </div>
            </td>
        </tr>
        <tr>
            <td>Confirmar contrase&ntilde;a: </td>
            <td>
                <?php echo form_password('pass2', set_value('pass2'), 'placeholder="Confirmar contrase&ntilde;a"'); ?>
                <div style="color: red">
                    <?php echo form_error('pass2'); ?>
                <div style="color: red">
            </td>
        </tr>
        <tr>
            <td>E-mail: </td>
            <td>
                <?php echo form_input('email', set_value('email'), 'placeholder="E-mail"'); ?>
                <div style="color: red">
                    <?php echo form_error('email'); ?>
                <div style="color: red">
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center">
                <br><br><br>
                <?php echo anchor('/','Cancelar','class="btn btn-danger"'); ?>
                <?php echo form_submit(array('name'=>'save', 'class'=>"btn btn-success", 'value'=>"Registrarme")); ?>
            </td>
        </tr>
    </tbody>
</table>
</div>
<?php echo form_close(); ?>
                    